		<?php //echo $this->url(array("action"=>"fiche","controller"=>"index","module"=>"admin","idsoum"=>$item['SOUMISSIONS_idSOUMISSIONS'],"idoperation"=>$item['idOPERATION_ADMISSION']));?>
	
<?php 
	$this->title = 'Page des equipes';
	$this->headTitle($this->title);
	echo $this->form;
?>


<script>
/*
function log( message ) {
	$( "<div/>" ).text( message ).prependTo( "#log" );
	$( "#log" ).scrollTop( 0 );
}
*/

$(function() {
	

	$( "#city" ).autocomplete({
		source: function( request, response ) {
			$.ajax({
				url: "http://soumission.uvt/admin/index/perso",
				dataType: "json",
				data: {
					
					codeinscrit: request.term
				},
				success: function( data ) {

					//return data.results;
					response( $.map( data.results, function( item ) {
						return {
							label: item.PRENOM +" "+ item.NOM,
							value: item.NOM,
							id : item.CODEINSCRIPTION
						}
					}));
				}
			});
		},
		minLength: 1,
		select: function( event, ui ) {

			//alert( ui.item.id);

			//alert( ui.item.id);
			$("#hid").val( ui.item.id);

			/*log( ui.item ?
				"Selected: " + ui.item.label :
				"Nothing selected, input was " + this.value);*/
		}/*,
		open: function() {
			$( this ).removeClass( "ui-corner-all" ).addClass( "ui-corner-top" );
		},
		close: function() {
			$( this ).removeClass( "ui-corner-top" ).addClass( "ui-corner-all" );
		}*/
	});
});

</script>

<legend>
Liste des membres de l'equipes d'admission:
</legend>

<center>
<table class="table table-striped" style="width: 99.99999998999999%;"  >
<thead>

<?php
 // Render each the title of each post for the current page in a list-item
	foreach ($this->paginator as $item) {		   
		foreach ($item as $key => $value) 
		{	
			if(isset($this->header[$key]) && !empty($this->header[$key])){
?>
	<th>
		<?php echo $this->header[$key]; ?>
	</th>
	
		<?php } }?>
	
		<?php break;}?>	
</thead><tbody>

<?php 	
		$i=0;
	foreach ($this->paginator as $item) {
	
?>
<tr> 

<?php 	
	foreach ($item as $key => $value) 
	{
		if(isset($this->header[$key]) && !empty($this->header[$key])){
						 
?>
	<td> 
	<?php echo $value; ?>
 	</td>
	<?php } } ?>
							
</tr>
		<?php	  }?>

</tbody></table></center>